package com.weixing.mall.provider.api.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.weixing.mall.base.constant.DatePattern;
import com.weixing.mall.provider.api.model.enums.ProfitFromEnum;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * AgentBonusRuleVo
 *
 * @author  wx
 * @date  2019/9/23 15:13
 * @since  1.0
 */
@Data
public class AgentBonusRuleVo {
    /**
     * id
     */
    private Long id;
    /**
     * 规则名称
     */
    private String ruleName;
    /**
     * 订单类型
     */
    private ProfitFromEnum orderType;
    /**
     * 分红一级比例(晋升为经销商)
     */
    private BigDecimal firstLevelRadio;
    /**
     * 分红一级比例(晋升为一级代理)
     */
    private BigDecimal firstLevelLv1Radio;
    /**
     * 分红二级比例
     */
    private BigDecimal secondLevelRadio;

    /**
     * 3个平一级时的分红比例
     */
    private BigDecimal unnormalBonusRadio;
    /**
     *  创建时间
     */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern= DatePattern.NORM_DATETIME_PATTERN)
    private Date createdTime;
}
